<div class="sidebar_2">
  <div>
    <h2>Search</h2>
    <%form_tag({:controller => "search", :action => "search_advertisments"}, :method => "get") do  -%>
    <%=text_field_tag "search_term", nil, :class => "search",:value=>params[:search_term] -%>
    <%=select_tag "group", options_for_select(Group.find(:all).collect{|x| [x.name, x.stripped_name]}), :class => "search" %>
    <%=select_tag "category", options_for_select(Category.find(:all).collect{|x| [x.name, x.stripped_name]}), :class => "search"-%>
    <%=submit_tag "Search", :class => "search btn" -%>
    <%end%>
  </div>
  <div class="search_options">
    <h2>Search options</h2>
    <%=text_field_tag "search_term", nil, :class => "search_opt" -%>
    <%=submit_tag "Search", :class => "search_opt btn" -%>
  </div>
</div>

